package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.system.api.factory.RemoteUserFallbackFactory;
import com.ruoyi.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteSmSendService", value = ServiceNameConstants.BUSS_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteSmSendService
{
    /**
     * 校验手机短信验证码
     *
     * @param
     * @return 结果
     */
    @GetMapping(value = "/smSendRecord/vaildSm")
    public AjaxResult vaildSm(@RequestParam("phone") String phone, @RequestParam("code")  String code);

    /**
     * 校验是否是开发者手机设备
     *
     * @param
     * @return 结果
     */
    @GetMapping(value = "/Sys_Busparams/ifAdmin")
    public AjaxResult ifAdmin(@RequestParam("code")  String code,@RequestParam("value")  String value);

}
